package com.xt.dao;

import com.xt.bean.SpecialtyCourse;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;

/**
 * Created by XT on 2018/5/3.
 */
public interface SpecialtyCourseRepository extends MongoRepository<SpecialtyCourse, String> {

    Page<SpecialtyCourse> findBySpecialtyIdOrCourseNameLike(String specialtyId, String courseName, Pageable pageable);

    Page<SpecialtyCourse> findBySpecialtyIdAndCourseNameLike(String specialtyId, String courseName, Pageable pageable);


    Page<SpecialtyCourse> findByDepartmentIdLikeAndSpecialtyIdLikeAndClassIdLikeAndCourseIdLikeAndTeacherIdLikeAndYearLikeAndSemesterLike(
            String departmentId,//院系id
            String specialtyId,//专业id
            String classId,//班级id
            String courseId,//课程id
            String teacherId,//授课老师id
            String year,//学年
            String semester,//学期
            Pageable pageable);
}
